package com.itheima.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 消费者
 * @author Johnny.Chen
 *
 */
@Component
@RabbitListener(queues="q1")
public class Consumer1 {
	
	@RabbitHandler
	public void msg(String msg) {
		System.out.println("q1：消费了====>"+msg);
	}

}
